#ifndef _SETFILEPAGECALLBACK_H
#define _SETFILEPAGECALLBACK_H

#include "AnCallback.h"
#include "AnMainwin.h"
#include <QMessageBox>
#include <QDialog>
#include <QTableWidget>
#include <QMovie>

#define MAXSIZE 20

class _SetFilepageCallback:public AnCallback
{
    Q_OBJECT

    public:
    _SetFilepageCallback();
    _SetFilepageCallback(AnMainwin *anMainwin);
    ~_SetFilepageCallback();

    void response(QJsonObject an_resp);
    QTableWidgetItem *get_current_item();

private:
    AnMainwin *amw;
    QTreeWidgetItem *test;
    QMessageBox *firstMessageBox;
    QDialog *firstDialog;
    QTableWidgetItem *file;
    QStringList header;
    QString currentDir;
    QTableWidgetItem *current_item;
    int dirFlag;
    QStringList *dirStack;
    QMovie *movie;

public slots:


    void connect_close();
    void connect_build();

    void refresh_clicked();
    void import_clicked();
    void export_clicked();

    void set_current_item(QTableWidgetItem *item);
    void jump(QTableWidgetItem *item);
};

#endif // _SETFILEPAGECALLBACK_H
